package com.google.code.twiddling.core.chain;

import com.google.code.twiddling.core.command.CommandContext;
import com.google.code.twiddling.core.history.HistoryManager;

/**
 * @author <a href="mailto:yy.young@gmail.com">Young Yang</a>
 * @create Dec 22, 2008 8:41:00 PM
 */
public class HistoryProcessor extends Processor{

    protected void process(CommandContext commandContext) throws Exception {
        String cmd = commandContext.getMetadata().getCmdline();
        HistoryManager.getInstance().addCommand(cmd);
    }
}
